package com.svse.designPattern.openclosedprinciple;


import com.svse.designPattern.openclosedprinciple.impl.*;
import com.svse.designPattern.openclosedprinciple.service.ActivityService;
import com.svse.designPattern.openclosedprinciple.service.MakeActivity;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/7/25 23:24
 */
public class OCPTest {

    public static void main(String[] args) {
        MakeActivity makeActivity = new MakeActivity();
        makeActivity.activity(new DepositAbstractActivity());
        makeActivity.activity(new HolidayAbstractActivity());
        makeActivity.activity(new RegisterAbstractActivity());


        ActivityService activityService =new Ab1();
        ActivityService abs2=new Ab2();

        makeActivity.activity2(activityService);
        makeActivity.activity2(abs2);

    }
}

